package observe;

/**
 * @author shenhan
 * @create 2020/4/10 17:42
 * @description
 */
public class Client {
    public static void main(String[] args) {
        final WeatherData weatherData = new WeatherData();
        final CurrentConditions currentConditions = new CurrentConditions();
        weatherData.registerObserver(currentConditions);
        final Baidu baidu = new Baidu();
        weatherData.registerObserver(baidu);
        weatherData.setData(10f, 100f, 340f);
    }
}
